﻿using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

using System;

using ZFB.Common;

namespace ZFB.WebAPI.Controllers
{
    [Route("api/[controller]")]
    [ApiController]
    public class smsController : ControllerBase
    {
        [HttpGet]
        public ApiResult Sms()
        {
           var code= CommonHelper.CreateRandomCode();
           var statusCode= Common.AliyunSmsHelper.SendSms("19357688219", "张佳一的博客", "SMS_461855080", "{\"code\":\"" + code + "\"}");
            return new ApiResult(data:statusCode);
        }
    }
}
